package com.ruoyi.mall.product.domain.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import javax.validation.constraints.NotNull;

/**
 * sku信息对象 pms_sku
 *
 * @author zhangqishu
 * @date 2022-05-25
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class PmsSku {
    private static final long serialVersionUID = 1L;

    /**
     * skuId
     */
    private Long id;

    /**
     * spuId
     */
    @Excel(name = "spuId")
    private Long spuId;

    /**
     * sku名称
     */
    @Excel(name = "sku名称")
    private String skuName;

    /**
     * 销量
     */
    @Excel(name = "销量")
    private Long saleCount;

    /**
     * 所属分类id
     */
    @Excel(name = "所属分类id")
    private Long categoryId;

    /**
     * 品牌id
     */
    @Excel(name = "品牌id")
    private Long brandId;

    /**
     * 默认图片
     */
    @Excel(name = "默认图片")
    private String skuDefaultImage;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String skuTitle;

    /**
     * 副标题
     */
    @Excel(name = "副标题")
    private String skuSubtitle;

    /**
     * 价格
     */
    @Excel(name = "价格")
    private BigDecimal price;

    /**
     * 重量（克）
     */
    @Excel(name = "重量", readConverterExp = "克=")
    private Long weight;

    /**
     * 检索条件
     */
    @TableField(exist = false)
    private String key;

    /**
     * 最小值
     */
    @TableField(exist = false)
    private Integer min;

    /**
     * 最大值
     */
    @TableField(exist = false)
    private Integer max;


}
